home *** CD-ROM | disk | FTP | other *** search
- Path: crl7.crl.com!not-for-mail
- From: jbrunson@crl.com (John C. Brunson)
- Newsgroups: comp.lang.c++
- Subject: BDE programmers: I need assistance
- Date: 11 Jan 1996 12:47:56 -0800
- Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest]
- Message-ID: <4d3t1s$sde@crl7.crl.com>
- NNTP-Posting-Host: crl7.crl.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- I'm a first time BDE programmer and I'm having some problems. Could
- someone e-mail me back so I could describe my problem in detail?
- Borland's Database Engine manual is NO HELP.
-
- Specifically:
-
- I'm accessing a table called "record.db" on my local c: drive.
- The database dir is c:\user\dbase
-
- 1. I've initialized the database (DbiInit(NULL) )
-
- 2. Opened a database (DbiOpenDatabase("SILVER", "STANDARD",
- dbiREADWRITE, dbiOPENSHARED, NULL, 0, NULL, NULL, &hDb); )
- The alias is "silver" and it's a paradox table.
-
- 3. Set a dir (DbiSetDirectory(hDb, "C:\\USER\\DBASE"); )
-
- 4. Opened a table (DbiOpenTable(hDb, "Record", szPARADOX, NULL,
- NULL, 0, dbiREADWRITE, dbiOPENSHARED, xltFIELD, FALSE, NULL, &hCur); )
-
- 5. Opened a cursor (DbiGetCursorProps(hCur, &curProps); )
-
- 6. Set to begin (DbiSetToBegin(hCur); )
-
- 7. Get the record (DbiGetNextRecord(hCur, dbiNOLOCK, pRecBuf, NULL); )
-
- 8. Get the field (DbiGetField( hCur, 1, pRecBuf, (pBYTE)&SDCNum,
- &isBlank) ;
-
- The "record" table is one record long. Field #1 is a number type.
-
- The problem is that once I check each one of these steps, everything
- checks out fine. Then when I check if isBlank is true or false, it comes
- out FALSE!!!
-
- PLEASE HELP! If you need further details, please email.
-
- JCB
- --
- John Brunson | When she left I was cold inside...
- jbrunson@crl.com | That look on my face was just pride...
- Atlanta, GA | -The Police
-
-